package com.gis.dto;

import lombok.Data;

@Data
public class YearAndSeasonDTO {
    private Integer year;
    private String season;

    public String getNextYearAndSeason() {
        if(season.equals("spring")){
            return year+"年秋季";
        }else{
            return (year+1)+"年春季";
        }
    }

    public Integer getNextYear() {
        if(season.equals("fall")){
            return year+1;
        }else {
            return year;
        }
    }
    public String getNextSeason() {
        if(season.equals("spring")){
            return "秋季";
        }else {
            return "春季";
        }
    }
}
